SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED True)

ENABLE_TESTING()
FIND_PACKAGE(GTest REQUIRED)
INCLUDE(GoogleTest)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test_bin)

AUX_SOURCE_DIRECTORY(./invoke DIR_INVOKE_TESTS)

ADD_EXECUTABLE(test_all test_all.cc 
    ${DIR_INVOKE_TESTS}
)
TARGET_LINK_LIBRARIES(test_all 
    GTest::GTest 
    GTest::Main 
    invoke
)

# GTEST_DISCOVER_TESTS(test_all)
